﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
					xmlns:controls="clr-namespace:Albatross.WPF.Common.Controls;assembly=Albatross.WPF.Common">

	<Style x:Key="toolbar" TargetType="ToolBar">
		<Setter Property="ToolBarTray.IsLocked" Value="True"/>
		<Setter Property="DockPanel.Dock" Value="Top"/>
	</Style>

	<!--<Style x:Key="toolbar btn" TargetType="Button" BasedOn="{x:Static ToolBar.ButtonStyleKey}">
	</Style>

	<Style x:Key="toolbar togglebtn" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Static ToolBar.ToggleButtonStyleKey}}">
	</Style>
	-->

	<Style x:Key="toolbar menu" TargetType="Menu" BasedOn="{StaticResource {x:Static ToolBar.MenuStyleKey}}">
		<Setter Property="Margin" Value="0"/>
		<Setter Property="Padding" Value="0"/>
		<Setter Property="VerticalContentAlignment" Value="Stretch"/>
	</Style>

	<Style x:Key="toolbar img" TargetType="Image">
		<Setter Property="DockPanel.Dock" Value="Left"/>
		<Setter Property="Width" Value="16"/>
		<Setter Property="Height" Value="16"/>
		<Setter Property="Margin" Value="1 2 0 2"/>
	</Style>

	<Style x:Key="toolbar menuitem img" TargetType="Image">
		<Setter Property="Width" Value="16"/>
		<Setter Property="Height" Value="16"/>
	</Style>

	<Style x:Key="toolbar text" TargetType="TextBlock">
		<Setter Property="VerticalAlignment" Value="Center"/>
		<Setter Property="Margin" Value="2"/>
	</Style>
	
	<Style x:Key="collapse btn" TargetType="ToggleButton" BasedOn="{StaticResource {x:Static ToolBar.ToggleButtonStyleKey}}">
		<Setter Property="IsChecked" Value="{Binding IsLeftExpanded, RelativeSource={RelativeSource AncestorType=controls:AlbatrossDockPanel}}" />
		<Setter Property="DockPanel.Dock" Value="Right"/>
		<Setter Property="Cursor" Value="Hand"/>
		<Setter Property="Content">
			<Setter.Value>
				<Image Source="/Albatross.Resources;component/Images/left.png" Width="16" Height="16" Margin="5" />
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="expand btn" TargetType="ToggleButton" BasedOn="{StaticResource {x:Static ToolBar.ToggleButtonStyleKey}}">
		<Setter Property="Cursor" Value="Hand"/>
		<Setter Property="VerticalAlignment" Value="Top"/>
		<Setter Property="IsChecked" Value="{Binding IsLeftExpanded, RelativeSource={RelativeSource AncestorType=controls:AlbatrossDockPanel}}" />
		<Setter Property="Content">
			<Setter.Value>
				<Image Source="/Albatross.Resources;component/Images/right.png" Width="16" Height="16" Margin="5" />
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>